package co.mibus;

import android.app.ActionBar;
import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;

import co.mibus.empresa.Afiliado;
import co.mibus.empresa.ListenerEmpresa;


public class Empresa extends Activity {

    public static Context appContext;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_empresa);

        ActionBar actionbar = getActionBar();
        actionbar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

        ActionBar.Tab PlayerTab = actionbar.newTab().setText("Fragment A");
        ActionBar.Tab StationsTab = actionbar.newTab().setText("Fragment B");

        Fragment PlayerFragment = new Afiliado();
        Fragment StationsFragment = new Afiliado();

        PlayerTab.setTabListener(new ListenerEmpresa(PlayerFragment));
        StationsTab.setTabListener(new ListenerEmpresa(StationsFragment));

        actionbar.addTab(PlayerTab);
        actionbar.addTab(StationsTab);
    }
}